package com.tarena.lbs.basic.web;

import com.tarena.lbs.basic.web.event.output.BasicOutputSource;
import com.tarena.lbs.common.security.config.UserPrincipleFilterAutoConfiguration;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.Import;

@SpringBootApplication
//如果当前服务 业务需要解析jwt 加载一下common包中的配置类
//1. 扫描common.security包
//2. 直接导入UserPrincipleFilterAutoConfiguration
@MapperScan("com.tarena.lbs.basic.web.mapper")
@Import(UserPrincipleFilterAutoConfiguration.class)
@EnableDubbo
@EnableBinding(BasicOutputSource.class)
public class BasicWeb {
    public static void main(String[] args) {
        org.springframework.boot.SpringApplication.run(BasicWeb.class, args);
    }
}
